{extend name="public/base" /}
{block name="style"}<link href="__LIB__/fileinput/css/fileinput.min.css" rel="stylesheet" /> {/block}
 {block name="body"}
 <div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>通用设置</strong></li>
	</ol>
</div>
{include file="general_settings/top"}
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="ibox-content">
				<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('related_member')}">
					<div class="form-group">
						<label class="col-sm-3 control-label"></label>
						<div class="input-group col-sm-4">
							<b>新会员默认有效期</b>&nbsp;
							<input type="radio" name="is_long_term" value="1" {if $result['is_long_term']==1} checked="checked"{/if}>永久有效&nbsp;&nbsp;&nbsp;
							几个月&nbsp;&nbsp;&nbsp;
							<input placeholder="36" id="check3_input" name="member_validity"  value="{$result['member_validity']}" style="width:8%;height:25px;text-align: center;"type="text">
							<span style="color:#c6c6c6;">(手动设置会员有效期)</span>
								
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"></label>
						<div class="input-group col-sm-4">
							<b>新会员赠送积分</b>
							<input  placeholder="0" id="check3_input" name="new_send_score" value="{$result['new_send_score']}" style="width:20%;height:25px;text-align: center;"type="text">（允许操作员修改）
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"></label>
						<div class="input-group col-sm-4">
							<b>新会员赠送金额</b>
							<input  placeholder="0" id="check3_input" name="new_send_money" value="{$result['new_send_money']}" style="width:20%;height:25px;text-align: center;"type="text">（允许操作员修改）
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"></label>
						<div class="input-group col-sm-4">
							<b>推荐人奖励积分</b>&nbsp;&nbsp;&nbsp;
							一级推荐人<input  placeholder="0" id="check3_input" name="first_referee" value="{$result['first_referee']}" style="width:10%;text-align: center;"type="text">&nbsp;&nbsp;&nbsp;
							二级推荐人<input  placeholder="0" id="check3_input" name="second_referee" value="{$result['first_referee']}" style="width:10%;text-align: center;"type="text">&nbsp;&nbsp;&nbsp;
							三级推荐人<input  placeholder="0" id="check3_input" name="thrid_referee" value="{$result['first_referee']}" style="width:10%;text-align: center;"type="text">
							<span style="color:#c6c6c6;"><br>例：A推荐B，那么A是B的一级推荐人；B推荐C，那么A是C的二级推荐人。</span>								
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"></label>
						<div class="input-group col-sm-4">
							<input type="checkbox" style="color:#000000；font-size:82px;" id ="" name="checkbox3[a]" value="1" {if $res1==1}checked="checked"{/if}><b>共享会员</b>
							<span style="color:#c6c6c6;"><br/>开启共享后，操作员可以查看和搜索其他店铺的会员，关闭共享后，操作员仅能查看和搜索“店铺权限”范围内的会员，店铺权限可在操作员管理中设置。</span>
							
						</div>
					</div>					<input type="hidden" name="checkbox3[]" value="false" />
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">
							<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
						</div>
					</div>
					
				</form>
			</div>
		</div>
	</div>
</div>

{/block} {block name="script"}
<script>
$("#li-bar-detail2").addClass("active");
	if(document.getElementById("check3").ckecked==true){
		alert('1');
	}else{
		document.getElementById("check3_input").toggleClass('readonly','readonly');
	}
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>

{/block}